package e

import (
	"errors"
)

var (
	// ErrInvalidTransaction invalid transaction when you are trying to `Commit` or `Rollback`
	ErrNotUpdated = errors.New("record was not updated")
	// ErrNotImplemented not implemented
	ErrNotImplemented = errors.New("not implemented")
	// ErrMissingWhereClause missing where clause
	ErrMissingWhereClause = errors.New("WHERE conditions required")

	ErrUserID     = errors.New("user id can not be 0")
	ErrBusinessID = errors.New("business id can not be 0")
	ErrGoodID     = errors.New("good id can not be 0")
	ErrMetaID     = errors.New("coupon meta id can not be 0")

	ErrSeckillNotStart     = errors.New("Seckill activity not started yet")
	ErrSeckillEnd          = errors.New("Seckill activity has ended")
	ErrSeckillTooBusy      = errors.New("Too many people, too busy")
	ErrSeckillCouponEmpty  = errors.New("0 coupon left now, welcome for next time")
	ErrInvalidBusinessId   = errors.New("Invalid business id")
	ErrInvalidCouponMetaId = errors.New("Invalid coupon meta id")
)
